package com.farmer.reliablemessage.mapper;

import com.farmer.reliablemessage.entity.ReliableMessage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author tech-famer
 * @ClassName: MessageManagerMapper
 * @Description: (这里用一句话描述这个类的作用)
 * @date 2021/11/1 15:14
 */
public interface MessageManagerMapper {

    void createmessage();

    void createmessagehistory();

    void createfailedmessage();

    void lockMessage(String owner);

    List<ReliableMessage> getMessages(String owner);

    void updateMessageToOK(String msgid);

    void updateFailTimes(@Param("msgid") String msgid, @Param("failreason") String failreason);

    void moveMessageToHistory();

    void moveMessageToFailed();

    void deleteSucceedMessage();

    void deleteOverFailedTimesMessage();
}
